package com.gitee.ywj1352;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.context.support.XmlWebApplicationContext;

/**
 * @author wenjie.yang on 2019/6/21.
 */
@SpringBootApplication
public class WebApplication {

    public static void main(String[] args) {
        SpringApplication ap = new SpringApplication(WebApplication.class);
        ap.run(args);
        //设置启动类型
        // ap.setWebApplicationType(WebApplicationType.NONE);

//        ConfigurableApplicationContext run = SpringApplication.run(WebApplication.class, args);
//
//        WebApplication bean = run.getBean(WebApplication.class);
//        System.out.println(bean);

    }
}
